<div class="hp-tab-newprd">
    <?php if(!is_iframe()){?>
    <ul class="j-sw-nav">
        <li class="newprd-s1 tab-li"><a href="<?php echo base_path();?>manage_chat/agent/list">查看</a></li>
        <li class="newprd-s2 tab-li <?php if(arg(2) == 'add'){?> on <?php }?>"><a href="<?php echo base_path();?>manage_chat/agent/add">添加</a></li>
        <?php if(arg(2) == 'edit' && !empty(arg(3))){?>
            <li class="newprd-s3 tab-li on"><a href="javascript:void(0)">修改</a></li>
        <?php }?>
    </ul>
    <div class="table-div" >
        <?php }?>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-select"><div class="form-label"><span class="required">*</span>客服名称:</div><?php print render($form['uid']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <?php  print _address_render_for_add($form)?>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="form-label"><span class="required">*</span>服务类型:</div><?php print render($form['chat_group_id']); ?>
            <div class="small-select small-div"><div class="form-label"><span class="required">*</span>客服别名:</div><?php print render($form['alias']); ?></div>
        </div>
        <div class="add-submit" style="text-align: center"><?php print render($form['submit']); ?></div>
    </div>
</div>
</div>

<?php print drupal_render_children($form); ?>